package org.example.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.com.Bean.Book;
import org.example.com.Bean.User;
import org.example.com.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface BookService extends IService<Book> {
    JsonResult findBook();

    JsonResult findBook(int page);
    JsonResult findById(String id);
    JsonResult findByBookName(String name,int page);
    JsonResult saveBook(Book book);
    JsonResult deleteBook(String id);
    JsonResult updateBook(Book book);
    JsonResult updateBookStatus(String id,int status);
}
